//
//  OpinionViewController.m
//  FlyGift
//
//  Created by lanou3g on 15/7/16.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "OpinionViewController.h"

@interface OpinionViewController ()
@property(nonatomic,strong)UITextView *myTextView;
@property(nonatomic,strong)UITextField *myTextField;
@end

@implementation OpinionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.translucent = NO;
    self.navigationItem.title = @"意见反馈";
    
    UIBarButtonItem *barButton = [[UIBarButtonItem alloc]initWithTitle:@"完成" style:UIBarButtonItemStylePlain target:self action:@selector(barButtonAction:)];
    self.navigationItem.rightBarButtonItem = barButton;
    
    
    UILabel *content = [[UILabel alloc]initWithFrame:CGRectMake(kP6width(15), kP6Height(50), kP6width(80), kP6Height(25))];
    content.text = @"反馈内容";
    content.font = [UIFont systemFontOfSize:15];
    content.alpha = 0.7;
    [self.view addSubview:content];
    
    
    self.myTextView = [[UITextView alloc]initWithFrame:CGRectMake(kP6width(5), kP6Height(80), kP6width(280-10), kP6Height(150))];
    self.myTextView.backgroundColor = [UIColor whiteColor];
    self.myTextView.font = [UIFont systemFontOfSize:15];
    [self.view addSubview:_myTextView];
    
    self.view.backgroundColor = [UIColor grayColor];
    
    UILabel *way = [[UILabel alloc]initWithFrame:CGRectMake(kP6width(15), kP6Height(270), kP6width(80), kP6Height(25))];
    way.text = @"联系方式";
    way.font = [UIFont systemFontOfSize:15];
    way.alpha = 0.7;
    [self.view addSubview:way];
    
    self.myTextField = [[UITextField alloc]initWithFrame:CGRectMake(kP6width(5), kP6Height(300), kP6width(280-10), kP6Height(40))];
    self.myTextField.backgroundColor = [UIColor whiteColor];
    [self.myTextField setPlaceholder:@"  电话 / 邮箱 / QQ"];
    self.myTextField.font = [UIFont systemFontOfSize:20];
    [self.view addSubview:self.myTextField];
    
    
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(kP6width(15), kP6Height(350), kP6width(350), kP6Height(25))];
    label.text = @"加入飞礼Q群888888888,回复更及时哦~";
    label.font = [UIFont systemFontOfSize:14];
    label.alpha = 0.7;
    [self.view addSubview:label];
    
}

-(void)barButtonAction:(UIBarButtonItem *)barButton
{
    NSLog(@"意见反馈填写完毕后,点击了完成.  在此,我没有做反馈内容或者联系方式有无填写完整或填写正确的判断,联系方式需要用到正则表达式");
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */

@end
